<style>
.createInfo {
    margin-left: 6px;
}

.createInfo .time {
    margin-left: 6px;
}
</style>
<div class="pageContent">
    <form method="post" action="${rc.getContextPath()}/manage/storageLocation/saveStorageLocation" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent">
            <input type="hidden" name="navTabId" value="${navTabId!''}"> <input type="hidden" name="id" value="<#if (storageLocation.storageLocationCode)??>${storageLocation.storageLocationCode!''}</#if>">
            <fieldset>
                <dl>
                    <dt><@label key="storageLocationCode.C,colon">库位编号：</@label></dt>
                    <dd>
                        <input name="storageLocationCode" class="required  alphanumeric toUp" value="<#if (storageLocation.storageLocationCode)??>${storageLocation.storageLocationCode!''}</#if>" size="8" type="text" maxlength="20" class="required" warn="<@label key="storageLocationCode.C,alreadyExists">库位编号已存在</@label>" <#if pattern!="add"> readonly="readonly" <#else> remote="${rc.getContextPath()}/manage/storageLocation/validateStorageLocationCode" </#if> />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="storageLocationText.C,colon">库位描述：</@label></dt>
                    <dd>
                        <input name="storageLocationText" value="<#if (storageLocation.storageLocationText)??>${storageLocation.storageLocationText!''}</#if>" size="22" type="text" maxlength="60" class="required"<#if "read"==pattern> readonly="readonly" </#if> />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="warehouseForStorageLocation.C,colon">所属仓库：</@label></dt>
                    <dd>
                        <select<#if pattern!="add"> disabled="disabled" </#if> name="warehouseCode" class="required">
                         <#list warehouses as warehouse>
                          <option value='${warehouse.warehouseCode}'<#if storageLocation.warehouseCode?? && storageLocation.warehouseCode == warehouse.warehouseCode> selected="selected"</#if>>
                          ${warehouse.warehouseCode}-${warehouse.warehouseText}
                            </option>
                             </#list>
                        <#if storageLocation??>
                            <#if storageLocation.warehouseLockFlag==1|| storageLocation.locationManageFlag==0>
                                  
                            <option value='${storageLocation.warehouseCode}' selected='selected'>${storageLocation.warehouseCode}-${storageLocation.warehouseText}</option>
                             </#if>
                        </#if>
                    </select>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="storageLocationType.C,colon">库位类型：</@label></dt>
                    <dd>
                    <select<#if "read"==pattern>
                            disabled="disabled"
                            </#if>
                            name="storageLocationTypeCode" class="required">
                        <#list storageLocationTypes as storageLocationType>
                        <option value="${storageLocationType.storageLocationTypeCode}"<#if storageLocation.storageLocationTypeCode?? && storageLocation.storageLocationTypeCode == storageLocationType.storageLocationTypeCode> selected="selected"</#if>>${storageLocationType.storageLocationTypeCode}-${storageLocationType.storageLocationTypeText}</option> </#list>
                        <#if storageLocation??>
                            <#if storageLocation.storageLocationTypeLockFlag==1>
                                  <option value='${storageLocation.storageLocationTypeCode}' selected='selected'>${storageLocation.storageLocationTypeCode}-${storageLocation.storageLocationTypeText}</option>
                             </#if>
                        </#if>
                   </select>
                    </dd>
                </dl>
                <dl>
                    <dt>&nbsp;</dt>
                    <dd>
                        <label><input type="checkbox" name="lockFlag" value="1"<#if "read"==pattern>
                            disabled="disabled"
                            </#if>
                            <#if
                            (storageLocation.lockFlag)?? && (storageLocation.lockFlag == 1)>
                            checked="true"</#if>><@label key="lock.C">锁定</@label></label>
                    </dd>
                </dl>
            </fieldset>
        </div>
        <#if storageLocation??>
            <#assign createInfo=storageLocation>
            <#include "/common/createInfo.html">
        </#if>
        <div class="formBar">
            <ul>
                <#if pattern!="read">
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit"><@label key="save.B">保存</@label></button>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="buttonActiveGrey">
                            <div class="buttonContent">
                                    <button type="button" class="close"><@label key="cancel.B">取消</@label></button>
                            </div>
                        </div>
                    </li>
                <#else>
                    <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                                <button type="button" class="close"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
                </li>
                </#if>
            </ul>
        </div>
    </form>
</div>

